import request from '@/utils/request/request';

// 分页条件查询检验单
export function getQueryPage(data: any) {
  return request.post('/api/procurement/order/receive-accept/byPage', data);
}
// 到货检验类型确认-单条项目
export function getReceiveAccept(id: string) {
  return request.get(`/api/procurement/order/receive-accept/${id}`);
}
// 到货检验类型确认-退回
export function updateBack(data: any) {
  return request.put('/api/procurement/order/receive-accept/back', data);
}
// 指定送检或指定自检
export function checkSet(data: any) {
  return request.put('/api/procurement/order/receive-accept/checkSet', data);
}
// 到货检验类型确认-批量修改三期
export function updateThrees(data: any) {
  return request.put(
    '/api/procurement/order/receive-detail-batch-three/updateThrees',
    data
  );
}
// 到货检验类型确认-保存
export function updateReceiveCheck(data: any) {
  return request.put(
    '/api/procurement/order/receive-accept/updateReceiveCheck',
    data
  );
}
// 到货检验类型确认-自检-提交
export function selfSubmit(data: any) {
  return request.post('/api/procurement/order/check-bill/submit', data);
}
// 到货检验类型确认-送检-提交
export function inspectionSubmit(data: any) {
  return request.post(
    '/api/procurement/order/receive-accept/inspectionSubmit',
    data
  );
}
